home *** CD-ROM | disk | FTP | other *** search
- package Code.LIB.SOUND
- {
- import flash.events.Event;
- import flash.media.Sound;
- import flash.media.SoundChannel;
- import flash.media.SoundTransform;
-
- public class _gw228
- {
- private var iSTransform:SoundTransform;
-
- private var iPList:SoundChannel;
-
- private var iPlaying:Boolean = false;
-
- private var iList:Array;
-
- public function _gw228(param1:SoundTransform)
- {
- iList = new Array();
- iPlaying = false;
- super();
- this.iSTransform = param1;
- }
-
- private function _tn749(param1:Event) : void
- {
- var _loc2_:Sound = null;
- if(iList.length == 0)
- {
- iPlaying = false;
- return;
- }
- _loc2_ = iList.pop();
- iPList.removeEventListener(Event.SOUND_COMPLETE,_tn749);
- iPList = _loc2_.play(0,0,iSTransform);
- iPlaying = true;
- iPList.addEventListener(Event.SOUND_COMPLETE,_tn749);
- }
-
- public function add(param1:Sound) : void
- {
- var _loc2_:Sound = null;
- if(iList.length > 7)
- {
- return;
- }
- iList.push(param1);
- if(iPlaying)
- {
- return;
- }
- iPlaying = true;
- _loc2_ = iList.pop();
- iPList = _loc2_.play(0,0,iSTransform);
- iPList.addEventListener(Event.SOUND_COMPLETE,_tn749);
- }
- }
- }
-
-